<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): Source/CPTBarPlot.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_bar_plot_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTBarPlot.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_bar_plot_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_plot_8h.html">CPTPlot.h</a>&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00004"></a>00004 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a>;
<a name="l00008"></a>00008 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a>;
<a name="l00009"></a>00009 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type.">CPTNumericData</a>;
<a name="l00010"></a>00010 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a>;
<a name="l00011"></a>00011 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a>;
<a name="l00012"></a>00012 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a>;
<a name="l00013"></a>00013 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a>;
<a name="l00014"></a>00014 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_text_layer.html" title="A Core Animation layer that displays a single line of text drawn in a uniform style.">CPTTextLayer</a>;
<a name="l00015"></a>00015 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_text_style.html" title="Immutable wrapper for various text style properties.">CPTTextStyle</a>;
<a name="l00016"></a>00016 
<a name="l00019"></a>00019 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="_c_p_t_bar_plot_8h.html#acf3b4618e2dd31a43ebbcdc6903daaf5" title="Bar locations.">CPTBarPlotBindingBarLocations</a>;
<a name="l00020"></a>00020 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="_c_p_t_bar_plot_8h.html#ac800753044b1b859c32a6213e34c086b" title="Bar tips.">CPTBarPlotBindingBarTips</a>;
<a name="l00021"></a>00021 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="_c_p_t_bar_plot_8h.html#a3f58e790799e9b4ff8534f5afeef6466" title="Bar bases.">CPTBarPlotBindingBarBases</a>;
<a name="l00023"></a>00023 
<a name="l00027"></a><a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537b">00027</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537b" title="Enumeration of bar plot data source field types.">_CPTBarPlotField</a> {
<a name="l00028"></a><a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537ba15093e2d8660234e8e5c6ba617c93c26">00028</a>     <a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537ba15093e2d8660234e8e5c6ba617c93c26" title="Bar location on independent coordinate axis.">CPTBarPlotFieldBarLocation</a> = 2, 
<a name="l00029"></a><a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537ba1ac5d4129d906bbd168460369edc0ea1">00029</a>     <a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537ba1ac5d4129d906bbd168460369edc0ea1" title="Bar tip value.">CPTBarPlotFieldBarTip</a>      = 3, 
<a name="l00030"></a><a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537baee601b2ab3022b908f2478c8a8e54b77">00030</a>     <a class="code" href="_c_p_t_bar_plot_8h.html#a59cb632a71b898b88ff7fc90b620537baee601b2ab3022b908f2478c8a8e54b77" title="Bar base (used only if barBasesVary is YES).">CPTBarPlotFieldBarBase</a>     = 4  
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032 <a class="code" href="_c_p_t_bar_plot_8h.html#a7751b99ab50e9bfb98acb098f002da2c" title="Enumeration of bar plot data source field types.">CPTBarPlotField</a>;
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#pragma mark -</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00039"></a><a class="code" href="protocol_c_p_t_bar_plot_data_source-p.html">00039</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_bar_plot_data_source-p.html" title="A bar plot data source.">CPTBarPlotDataSource</a>&lt;<a class="code" href="protocol_c_p_t_plot_data_source-p.html" title="A plot data source.">CPTPlotDataSource</a>&gt;
<a name="l00040"></a>00040 <span class="keyword">@optional</span>
<a name="l00041"></a>00041 
<a name="l00048"></a>00048 -(<a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *)barFillForBarPlot:(<a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a> *)barPlot recordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00049"></a>00049 
<a name="l00056"></a>00056 -(<a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *)barLineStyleForBarPlot:(<a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a> *)barPlot recordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">@end</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="preprocessor">#pragma mark -</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00065"></a><a class="code" href="protocol_c_p_t_bar_plot_delegate-p.html">00065</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_bar_plot_delegate-p.html" title="Bar plot delegate.">CPTBarPlotDelegate</a>&lt;<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html">NSObject</a>&gt;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">@optional</span>
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 <span class="comment">// @name Point selection</span>
<a name="l00071"></a>00071 <span class="comment"></span>
<a name="l00076"></a>00076 -(void)barPlot:(<a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a> *)plot barWasSelectedAtRecordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00077"></a>00077 
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="keyword">@end</span>
<a name="l00081"></a>00081 
<a name="l00082"></a>00082 <span class="preprocessor">#pragma mark -</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00084"></a><a class="code" href="interface_c_p_t_bar_plot.html">00084</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a> : <a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> {
<a name="l00085"></a>00085     <span class="keyword">@private</span>
<a name="l00086"></a><a class="code" href="interface_c_p_t_bar_plot.html#ada02529fb454bde898da35acaba1ed83">00086</a>     <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *<a class="code" href="interface_c_p_t_bar_plot.html#ada02529fb454bde898da35acaba1ed83" title="The line style for the bar outline. If nil, the outline is not drawn.">lineStyle</a>;
<a name="l00087"></a><a class="code" href="interface_c_p_t_bar_plot.html#a38eeae57017ee0081117b0f1947da3ef">00087</a>     <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *<a class="code" href="interface_c_p_t_bar_plot.html#a38eeae57017ee0081117b0f1947da3ef" title="The fill style for the bars. If nil, the bars are not filled.">fill</a>;
<a name="l00088"></a><a class="code" href="interface_c_p_t_bar_plot.html#a82f1434ff5a5b98ef005dca5feee1572">00088</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="code" href="interface_c_p_t_bar_plot.html#a82f1434ff5a5b98ef005dca5feee1572" title="The width of each bar. Either view or plot coordinates can be used.">barWidth</a>;
<a name="l00089"></a><a class="code" href="group__plot_animation_bar_plot.html#ga9ccd0b2ed6a06298e6f4585bf3e95279">00089</a>     CGFloat <a class="code" href="group__plot_animation_bar_plot.html#ga9ccd0b2ed6a06298e6f4585bf3e95279" title="An animatable scaling factor for the bar width. Default is 1.0.">barWidthScale</a>;
<a name="l00090"></a><a class="code" href="interface_c_p_t_bar_plot.html#aa2f71205bdb735ddc2abaebb3e56ff75">00090</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="code" href="interface_c_p_t_bar_plot.html#aa2f71205bdb735ddc2abaebb3e56ff75" title="The starting offset of the first bar in location data units.">barOffset</a>;
<a name="l00091"></a><a class="code" href="group__plot_animation_bar_plot.html#gacf7d5567082b089e0ddcc5664eecb0db">00091</a>     CGFloat <a class="code" href="group__plot_animation_bar_plot.html#gacf7d5567082b089e0ddcc5664eecb0db" title="An animatable scaling factor for the bar offset. Default is 1.0.">barOffsetScale</a>;
<a name="l00092"></a><a class="code" href="group__plot_animation_bar_plot.html#ga880361dd6ad4a3e7f1c26f56c7ed84cd">00092</a>     CGFloat <a class="code" href="group__plot_animation_bar_plot.html#ga880361dd6ad4a3e7f1c26f56c7ed84cd" title="The corner radius for the end of the bars.">barCornerRadius</a>;
<a name="l00093"></a><a class="code" href="interface_c_p_t_bar_plot.html#a61030b1cf4e726b5d9a67a07b8c78a89">00093</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="code" href="interface_c_p_t_bar_plot.html#a61030b1cf4e726b5d9a67a07b8c78a89" title="The coordinate value of the fixed end of the bars. This is only used if barsHaveVariableBases is NO...">baseValue</a>;
<a name="l00094"></a><a class="code" href="interface_c_p_t_bar_plot.html#ad1734ee6979130d887f2a95cd5081a83">00094</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="code" href="interface_c_p_t_bar_plot.html#ad1734ee6979130d887f2a95cd5081a83" title="If YES, the bars will have a horizontal orientation, otherwise they will be vertical.">barsAreHorizontal</a>;
<a name="l00095"></a><a class="code" href="interface_c_p_t_bar_plot.html#abbd260f801d950fd944638b757597b06">00095</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="code" href="interface_c_p_t_bar_plot.html#abbd260f801d950fd944638b757597b06" title="If YES, a constant base value is used for all bars (baseValue). If NO, the data source is queried to ...">barBasesVary</a>;
<a name="l00096"></a><a class="code" href="interface_c_p_t_bar_plot.html#a9d1abb45a60f9daa990b9ea7d68d17f7">00096</a>     <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> <a class="code" href="interface_c_p_t_bar_plot.html#a9d1abb45a60f9daa990b9ea7d68d17f7" title="Whether the bar width and bar offset is in view coordinates, or in plot coordinates. Default is NO, meaning plot coordinates are used.">barWidthsAreInViewCoordinates</a>;
<a name="l00097"></a><a class="code" href="interface_c_p_t_bar_plot.html#afbe47324c211948bcc6554f44cba9740">00097</a>     <a class="code" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> *<a class="code" href="interface_c_p_t_bar_plot.html#afbe47324c211948bcc6554f44cba9740" title="Sets the plot range for the independent axis.">plotRange</a>;
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> barWidthsAreInViewCoordinates;
<a name="l00101"></a>00101 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> barWidth;
<a name="l00102"></a>00102 <span class="keyword">@property</span> (nonatomic, readwrite, assign) CGFloat barWidthScale;
<a name="l00103"></a>00103 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> barOffset;
<a name="l00104"></a>00104 <span class="keyword">@property</span> (nonatomic, readwrite, assign) CGFloat barOffsetScale;
<a name="l00105"></a>00105 <span class="keyword">@property</span> (nonatomic, readwrite, assign) CGFloat barCornerRadius;
<a name="l00106"></a>00106 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *lineStyle;
<a name="l00107"></a>00107 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *fill;
<a name="l00108"></a>00108 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> barsAreHorizontal;
<a name="l00109"></a>00109 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> baseValue;
<a name="l00110"></a>00110 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a> barBasesVary;
<a name="l00111"></a>00111 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_plot_range.html" title="Defines an immutable range of plot data.">CPTPlotRange</a> *plotRange;
<a name="l00112"></a>00112 
<a name="l00115"></a>00115 +(<a class="code" href="interface_c_p_t_bar_plot.html" title="A two-dimensional bar plot.">CPTBarPlot</a> *)tubularBarPlotWithColor:(<a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a> *)color horizontalBars:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html">BOOL</a>)horizontal;
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="keyword">@end</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_bar_plot_8h.html">CPTBarPlot.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
